package com.myboot.demo.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * @Author: 韦溜溜
 * @Description:
 * @Date: Create in 21:52 2018/12/11
 */
@Entity
@Data
@DynamicUpdate
public class OrderDetail {

    @Id
    private String detailId;

    private String orderId;

    private String productId;
    /**
     *商品名称
     */
    private String productName;
    /**
     *当前价格,单位分
     */
    private BigDecimal productPrice;
    /**
     *数量
     */
    private Integer productQuantity;
    /**
     *小图
     */
    private String productIcon;


}
